@model ToDoListWeb.Models.UserModel
@section head{
    <link href="~/css/userInfo.css" rel="stylesheet" />
}
@{
    ViewData["Title"] = "UserInfo";
    ViewData["numberOfInventory"]=Model.Inventory.Count;
    @if(Model.NickName==null)
    {
        ViewData["Name"] = Model.UserName;
    }
    else
    {
        ViewData["Name"] = Model.NickName;
    }
}
<div id="user-head">
    <img id="user-img-head" src="~/images/用户.png" alt="">
</div>
<div id="all-info">
    <form class="bs-example bs-example-form" role="form" action="/User/ChangeNickName" method="post">
        <div class="input-group">
            <p class="input-group-addon">用户账号</p>
            <input type="text" class="form-control" value="@Model.UserName" disabled="disabled">
        </div>
        <div class="input-group">
            <p class="input-group-addon">用户昵称</p>
            <input maxlength="8" type="text" class="form-control" value="@Model.NickName" name="nickName" placeholder="昵称长度不超过8个字符">
        </div>
        <div class="input-group">
            <p class="input-group-addon">注册时间</p>
            <input type="text" class="form-control" value="@Model.RegistTime.Year 年 @Model.RegistTime.Month 月 @Model.RegistTime.Day 日" disabled="disabled">
        </div>
        <input type="submit" id="submit" value="刷新信息">

    </form>
</div>
